﻿<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             x:Class="nRoute.Samples.SimpleMVVM.App"
             xmlns:n="http://nRoute/schemas/2010/xaml">

    <Application.ApplicationLifetimeObjects>
        <n:nRouteApplicationService>
            <n:nRouteApplicationService.SiteMapProvider>

                <n:XamlSiteMapProvider>
                    <n:SiteMap>
                        
                        <n:SiteMap.Areas>
                            <n:SiteArea Key="ExtendedArea" RemoteUrl="nRoute.Samples.ExtendedMVVM.Silverlight.xap" InitializeOnLoad="false"/>
                        </n:SiteMap.Areas>
                        
                        <n:SiteMap.RootNode>
                            <n:NavigationNode>
                                <n:NavigationNode Title="Page A" Url="Pages/PageA/" />
                                <n:NavigationNode Title="Page B" Url="Pages/PageB/" />
                                <n:NavigationNode Title="Page C" Url="Pages/PageC/" />
                                <n:NavigationNode Title="Page D" Url="Pages/PageD/" SiteArea="ExtendedArea" />
                            </n:NavigationNode>
                        </n:SiteMap.RootNode>
                        
                    </n:SiteMap>
                </n:XamlSiteMapProvider>
                
            </n:nRouteApplicationService.SiteMapProvider>
        </n:nRouteApplicationService>
    </Application.ApplicationLifetimeObjects>
    
    <Application.Resources>        
    </Application.Resources>
    
</Application>
